From 1f7f827c82afaff5071d612bf05a3408d5d7f10c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 20 Dec 2007 13:48:27 +0000 Subject: [PATCH] Xend: don't check for device reuse if the device has no uname. Signed-off-by: Tim Deegan --- tools/python/xen/xend/XendConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index 2ca65a525c..0e970b6293 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -985,7 +985,7 @@ class XendConfig(dict): dev_uname = dev_info.get('uname') blkdev_name = dev_info.get('dev') devid = self._blkdev_name_to_number(blkdev_name) - if devid == None: + if devid == None or dev_uname == None: return for o_dev_type, o_dev_info in defined_devices_sxpr: -- 2.30.2